home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 272_01 / weekday.doc < prev    next >
Text File  |  1987-07-15  |  860b  |  40 lines

  1.  
  2.  
  3.        NAME
  4.                weekday -- Determine the day of the week form the date
  5.  
  6.        SYNOPSIS
  7.                value = weekday(month, day, year);
  8.                int value;      returns 0-6
  9.                int month;      number of month 1-12
  10.                int day;        number of date 1-31
  11.                int year;       year starting with 1980
  12.  
  13.        DESCRIPTION
  14.        This function returns the number of the day in the week for any
  15.        date from January 1, 1980.  Sunday is day 0, and Saturday is day 6.
  16.  
  17.  
  18.  
  19.        EXAMPLE
  20.  
  21.              for July 2, 1986:
  22.              int value;
  23.              value = weekday(7, 2, 1986);
  24.  
  25.              value for this date will be 3 (Wednesday)
  26.              You may wish me a Happy Birthday.
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.        This function is found in SMDLx.LIB for the Datalight Compiler.
  40.